import 'package:json_annotation/json_annotation.dart';

import 'BaseObject.dart';

part 'BaseData.g.dart';

@JsonSerializable()
class BaseData{
  late int total;
  late int page;
  late int pageSize;
  late BaseObject? object;
  late List<BaseObject>? list;

  BaseData();

  //反序列化
  factory BaseData.fromJson(Map<String, dynamic> json) => _$BaseDataFromJson(json);

  //序列化
  Map<String, dynamic> toJson() => _$BaseDataToJson(this);
}